package com.example.mq.mqclient;

import lombok.Data;

import java.io.IOException;

@Data
public class ConnectionFactory {
    // brokerserver 的ip地址
    private String host;
    // brokerserver 的port
    private int port;

    public Connection newConnection() throws IOException {
        Connection connection = new Connection(host,port);
        return connection;
    }

    // 下面属性先不搞
   // private String vitualHostName;
    // private String username;
   //  private String password;
}
